package com.timo.redis.controller;

import com.google.gson.JsonObject;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 首页登陆控制器
 * @Author: timo
 * @Date: 2019/8/28 10:38
 */
@RestController
public class IndexController {

    @GetMapping
    public JsonObject index() {
        JsonObject json = new JsonObject();
        json.addProperty("code", HttpStatus.OK.value()+"");
        return json;
    }
}
